package com.openharmony.filepicker.engine;

import com.squareup.picasso.Picasso;
import ohos.agp.components.Image;
import ohos.app.Context;
import ohos.utils.net.Uri;

public class PicassoEngine implements ImageEngine{
    @Override
    public void loadImage(Context context, Image image, String url, int placeholder) {

        Picasso.get()
                .load(Uri.parse(url))
                .tag(context)
                .placeholder(placeholder)
                .into(image);

    }
}
